var storeServiceNative = require("../services/storeService.js");
var errorHandler = require('../common/errorHandler');

var aboutController = {
    about: function (req, res, next) {
        var storeService = errorHandler.errorToResponse(req, res, storeServiceNative);

        storeService.getStoreById(req.params.id, null, function (err, result) {
            if (err) {
                res.status(500).send(err);
                return;
            }

            res.render('about.html', result);
        });
    }
}


module.exports = aboutController;